package com.trade.system.sysrun;

import lombok.extern.log4j.Log4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * Class Description: 加载字典到内存
 *
 * @Version v1.0 2017/4/24 22:54
 * @JDK version 1.8.0_51
 * @Author zfb
 */
@Log4j
@Component
public class InitProjectUtil implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        log.info("<<<<<<<<<<<<<<<<<<<<<开始加载字典到内存>>>>>>>>>>>>>>>>>>>>>");
        DictionaryUtil.getInstance().initDicToMemory();
        log.info("<<<<<<<<<<<<<<<<<<<<<加载字典到内存成功>>>>>>>>>>>>>>>>>>>>>");
    }
}
